<?php 
	include($_SERVER['DOCUMENT_ROOT']."/IphoneGoogleCode1/server/pickup.class.php"); 
	$my_access = new pick_up();
	if (isset($_POST['key'])) {
		$my_access->getListDefault();
	}
	if (isset($_POST['txt_pickup_pcode']) && trim($_POST['txt_pickup_pcode']) !='Search Postcode' ) {
		$txtsearch = $_POST['txt_pickup_pcode'];
		$my_access->getInfoLocal($txtsearch);
	}
	if (isset($_POST['txt_pickup_localt']) && trim($_POST['txt_pickup_localt']) !='Search Location') {
	
		$txtsearch = $_POST['txt_pickup_localt'];
		$my_access->getLocaltion($txtsearch);
	}
	if (isset($_POST['txt_pickup_street']) && trim($_POST['txt_pickup_street']) !='Search Street') {
		$txtsearch = $_POST['txt_pickup_street'];
		$my_access-> getStreet($txtsearch);
	}
?>